// 全部数据
import hyRequest from '@/services/index'
import type { IDepartmentResponse, IMenuListResponse, IRoleResponse } from './type'
// 获取所有角色
export function getEntireRoles() {
  return hyRequest.post<IRoleResponse>({
    url: '/role/list'
  })
}

// 获取所有部门
export function getEntireDepartments() {
  return hyRequest.post<IDepartmentResponse>({
    url: '/department/list'
  })
}

// 获取所有菜单
export function getEntireMenus() {
  return hyRequest.post<IMenuListResponse>({
    url: '/menu/list'
  })
}
